package com.weavernorth.store;

import com.weavernorth.store.service.storeClockInService;
import com.weavernorth.util.Logger4jUtil;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;

/**
 * @author 王文彬
 * @date 2020/10/30 16:14
 * @description 描述：巡店计划门店打卡记录从v8取数计划任务
 */
public class storeClockInTimmer extends BaseCronJob {
    Logger log = Logger4jUtil.getLoggerByName("/Timmer/storeClockInTimmer/");
    private String gh;
    private String begindate;
    private String endate;
    public String getGh() {
        return gh;
    }
    public void setGh(String gh) {
        this.gh = gh;
    }
    public String getBegindate() {
        return begindate;
    }
    public void setBegindate(String begindate) {
        this.begindate = begindate;
    }
    public String getEndate() {
        return endate;
    }
    public void setEndate(String endate) {
        this.endate = endate;
    }
    @Override
    public void execute() {
        log.info("----巡店计划门店打卡记录定时任务执行开始----：");
        storeClockInService service=new storeClockInService();
        service.setGh(gh);
        service.setBegindate(begindate);
        service.setEndate(endate);
        service.execute();
        log.info("----巡店计划门店打卡记录定时任务执行结束----：");
    }
}
